import request from '@/utils/request'

export function getListByPage(data) {
  return request({
    url: '/systemMessage/getListByPage?page=' + data.page + '&limit=' + data.limit +
      '&searchTitle=' + data.searchTitle,
    method: 'get'
  })
}

export function updateSystemMessage(data) {
  return request({
    url: '/systemMessage/update',
    method: 'post',
    data: data
  })
}

export function addSystemMessage(data) {
  return request({
    url: '/systemMessage/save',
    method: 'post',
    data: data
  })
}

export function deleteSystemMessage(data) {
  return request({
    url: '/systemMessage/delete',
    method: 'post',
    data: data
  })
}
